<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        <div class="panel-lead"><em>功能配置</em>根据实际应用场景选择性填写</div>
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab-base" data-toggle="tab">{:__('基本设置')}</a></li>
            <li><a href="#tab-express" data-toggle="tab">{:__('快递设置')}</a></li>
            <li><a href="#tab-mp" data-toggle="tab">{:__('公众号设置')}</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="tab-base">
                <div class="widget-body no-padding">
                    <form id="base-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST">
                        <table class="table table-striped">
                            <tbody>
                                <tr>
                                    <td width="20%">{:__('小程序AppId')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-base-app_id" class="form-control" type="text" name="row[base][app_id]" title="" value="{$row.base.app_id|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('小程序AppSecret')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-base-app_secret" class="form-control" type="text" name="row[base][app_secret]" title="" value="{$row.base.app_secret|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('只在微信小程序使用')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <div class="radio">
                                                    {foreach name="yesOrNo" item="vo"}
                                                    <label for="row[base][only_wechat]-{$key}"><input id="row[base][only_wechat]-{$key}" type="radio" name="row[base][only_wechat]" title="" value="{$key}" data-tip="开启后，登录和短信验证码支持更强大的防刷机制" {in name="key" value="$row.base.only_wechat|default=0"}checked{/in}>{$vo}</label>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('H5域名')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-base-h5_domain" class="form-control" type="text" name="row[base][h5_domain]" title="" value="{$row.base.h5_domain|default=''}" placeholder="选填" data-tip="选填，如果H5方式运行，生成活动二维码时需要填写">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
            <div class="tab-pane fade" id="tab-express">
                <div class="widget-body no-padding">
                    <div class="alert alert-warning-light">
                        <p>本插件使用"阿里云市场-全球快递物流查询"来实现快递查询，如果礼品有实物且需要快递，则必填</p>
                    </div>
                    <form id="express-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST">
                        <table class="table table-striped">
                            <tbody>
                            <tr>
                                <td width="20%">{:__('物流插件appcode')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-express-aliyun_appcode" class="form-control" type="text" name="row[express][aliyun_appcode]" title="" value="{$row.express.aliyun_appcode|default=''}" placeholder="阿里云市场全球快递插件的appcode，选填" data-tip="如果存在实物且需要查询物流信息，则必填">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
            <div class="tab-pane fade" id="tab-mp">
                <div class="widget-body no-padding">
                    <form id="mp-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST">
                        <table class="table table-striped">
                            <tbody>
                            <tr>
                                <td width="20%">{:__('公众号AppId')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-mp-app_id" class="form-control" type="text" name="row[mp][app_id]" title="" value="{$row.mp.app_id|default=''}" placeholder="选填">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('公众号AppSecret')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-mp-app_secret" class="form-control" type="text" name="row[mp][app_secret]" title="" value="{$row.mp.app_secret|default=''}" placeholder="选填">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('微信网页自动登录')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="radio">
                                                {foreach name="yesOrNo" item="vo"}
                                                <label for="row[mp][mp_login]-{$key}"><input id="row[mp][mp_login]-{$key}" type="radio" name="row[mp][mp_login]" title="" value="{$key}" data-tip="" {in name="key" value="$row.mp.mp_login|default=0"}checked{/in}>{$vo}</label>
                                                {/foreach}
                                            </div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
